package com.ksd.modules.adminlogs.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.ksd.commons.AbstractEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * <p>
 * 系统日志
 * </p>
 *
 * @author Auto Generator
 * @since 2023-08-17
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_log")
@ApiModel(value = "SysLog对象", description = "系统日志")
public class SysLog extends AbstractEntity {

    @ApiModelProperty("主键")
    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("描述")
    private String description;

    @ApiModelProperty("请求方法")
    private String method;

    @ApiModelProperty("参数")
    private String params;

    @ApiModelProperty("请求ip")
    private String requestIp;

    @ApiModelProperty("方法执行耗时")
    private Long time;

    @ApiModelProperty("操作人")
    private String username;

    @ApiModelProperty("地址")
    private String address;

    @ApiModelProperty("浏览器")
    private String browser;

    @ApiModelProperty("浏览器版本号")
    private String browserVersion;

    @ApiModelProperty("操作系统")
    private String os;
    // 创建时间
    private LocalDateTime createTime;
    // 更新时间
    //@ApiModelProperty("执行类")
    private String className;

}
